#ifndef BHOMEVIEW_H
#define BHOMEVIEW_H

#include <QWidget>
#include <QVector>

#include "RobotMap/RobotMap.h"
#include "RobotMap/RobotStateMonitor.h"
#include "RobotMap/RobotItemDialog.h"

namespace Ui {
class BHomeView;
}

class BHomeView : public QWidget
{
    Q_OBJECT

public:
    explicit BHomeView(QWidget *parent = nullptr);
    ~BHomeView();
    /**
    * @brief  添加Item和Monitor
    */
    void addItemAndMonitor(const RobotBaseData& baseData,
                           const RobotNetData& netData);

private slots:
    void on_pushButton_clicked();

private:
    Ui::BHomeView *ui;

    RobotMap* m_robotMap;    //地图

    void initStackWidget(); //初始化显示
    QVector<RobotItem*> m_itemVector;
    QVector<RobotStateMonitor*> m_monitorVector;
};

#endif // BHOMEVIEW_H
